{extend name="iframe" /}
{block name="body"}
<div class="layui-card">
    <div class="layui-card-body">
        <form action="{:request()->url()}" class="layui-form" method="post">
            <input type="hidden" id="kid" name="kid" value="{$kid|default=''}" />
            <input type="hidden" id="kid2" name="kid2" value="{$data.kid|default=''}" />
            <div class="layui-form-item">
                <label class="layui-form-label">* 开始年份</label>
                <div class="layui-input-block">
                    <input type="text" id="year_from" name="year_from" value="{$data.year_from|default=''}" autocomplete="off" placeholder="请选择开始年份" readonly lay-verify="required" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">* 终止年份</label>
                <div class="layui-input-block">
                    <input type="text" id="year_to" name="year_to" value="{$data.year_to|default=''}" autocomplete="off" placeholder="请选择终止年份" readonly lay-verify="required" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">* 机构</label>
                <div class="layui-input-block">
                    <input type="text" name="agency" value="{$data.agency|default=''}" autocomplete="off" placeholder="请输入机构" lay-verify="required" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">学历</label>
                <div class="layui-input-block">
                    <input type="text" name="education" value="{$data.education|default=''}" autocomplete="off" placeholder="请输入学历" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">邮箱地址</label>
                <div class="layui-input-block">
                    <input type="text" name="email" value="{$data.email|default=''}" autocomplete="off" placeholder="请输入邮箱地址" lay-verify="email" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-filter="i" lay-submit="">保存</button>
                    <button class="layui-btn layui-btn-primary" type="reset">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
{/block}
{block name="js"}
<script>
    $(function() {
        var kid2 = $("#kid2").val();
        if (kid2 !== '' && kid2 !== null && kid2 !== undefined) {
            $("#kid").val(kid2);
        }
    });

    laydate.render({
        elem: '#year_from',
        type: 'year'
    })
    laydate.render({
        elem: '#year_to',
        type: 'year'
    })
</script>
{/block}